import request from "@/utils/request";

// 封装注册api
export const registerAPI = (data) => {
  return request.post("/h5/user/register", data);
};

// 封装登录api
export const loginAPI = (data) => {
  return request.post("/h5/user/login", data);
};

// 获取用户信息
export const getUserInfoAPI = () => {
  return request({ url: "/h5/user/currentUser" });
};
